﻿#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_DiskCoverTool.h"
#include <cstdio>
#include <fcntl.h>
#include <fstream>
#include <QFileDialog>
#include <QDir>
#include <QMessageBox>
#include <QString>
#include <QFuture>
#include <QtConcurrent/QtConcurrent>
#ifdef _WIN32
    #include <windows.h>
    #include <io.h>
    #include <direct.h>
#else
    #include <unistd.h>
    #include <sys/stat.h>
    #include <fcntl.h>
#endif
class DiskCoverTool : public QMainWindow
{
    Q_OBJECT

public:
    DiskCoverTool(QWidget *parent = nullptr);
    ~DiskCoverTool();

private:
    Ui::DiskCoverToolClass ui;
protected slots:
	void on_pushButton_ChooseDir_clicked();
	void on_pushButton_Start_clicked();
private:
	bool m_bReqStop;
    QFuture<void> m_Future;
    inline int portable_fflush(FILE* file);
};

